<button><img id="pass1" alt="Img alt text" />Link text</button>
<a href="#"><img id="pass2" alt="Img alt text" />Link text</a>
<a href="#"><img id="pass3" alt="Link text" role="presentation" />Link text</a>

<button><img id="fail1" alt="button text" />Button text</button>
<a href="#"><img id="fail2" alt="Link text" />Link text</a>
<p><img id="fail3" alt="paragraph text" />paragraph text</p>
<table>
  <tr>
    <th><img id="fail4" alt="header cell text" />header cell text</th>
    <td><img id="fail5" alt="data cell text" />data cell text</td>
  </tr>
</table>

<ul>
  <li><img id="fail6" alt="list text" />list text</li>
</ul>

<!-- ignore -->
<a href="#"><img alt="Link text" aria-hidden="true" />Link text</a>
